class_name Toast extends Node2D

func _init():
	ObjectManager.toast = self
	
func _ready():
	visible = false

func showToast(message:String):
	visible = true
	$"ColorRect/Label".text = message
	$"AnimationPlayer".stop()
	$"AnimationPlayer".play("提示框弹出")
